package com.whmall.service.crm.module.company.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmall.service.crm.module.company.entity.CompanyUserInvoiceDO;
import com.whmall.service.crm.module.company.entity.qo.CompanyUserInvoiceQO;
import com.whmall.service.crm.module.companyuser.entity.CompanyUserDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CompanyUserInvoiceMapper extends BaseMapper<CompanyUserInvoiceDO> {
    int deleteById(Long id);

    int insert(CompanyUserInvoiceDO record);

    int insertSelective(CompanyUserInvoiceDO record);

    CompanyUserInvoiceDO selectById(Long id);

    int updateByIdSelective(CompanyUserInvoiceDO record);

    int updateById(CompanyUserInvoiceDO record);

    List<CompanyUserInvoiceDO> listBy(CompanyUserInvoiceQO qo);


    CompanyUserInvoiceDO getByCompanyId(Long companyId);

}